// inject 注入统一管理
import config from '@/config/config'
import { generate } from '@ant-design/colors'


export const createColor = generate(config.colors.themeColor)
export const colors: Record<string, string> = {
  themeColor: createColor[5],
  lightColor: createColor[4],
  disabledColor: createColor[3],
  disabledLightColor: createColor[2],
  tooLightColor: createColor[1],
  reduceColor: config.colors.reduceColor,
  bgColor: config.colors.bgColor || '#f8f8f8'
}
export const Toast = Symbol('toast')

export const InputStyle = {
  background: colors.bgColor,
  height: '70rpx',
  padding: '0 20rpx',
}

export const TextareaStyle = {
  background: colors.bgColor,
  padding: '0 20rpx',
}

export const tabPaneStyle = {
  padding: '0',
  backgroundColor: colors.bgColor
}
export const systemInfo = async () => {
  uni.getSystemInfo({
    success: (res) => {
      return res
    }
  })

}

